import Vue from "vue"
import vueRouter from 'vue-router'

Vue.use(vueRouter)
const router = new vueRouter({
  routes: [
    {path: '/home', component: () => import('@/components/Home.vue')},
    {path: '/movie', component: () => import('@/components/Movie.vue')},
    {path: '/about', 
    component: () => import('@/components/About.vue'),
    children: [
      {path: 'tab1', component: () => import('../components/tabs/Tab1.vue')},
      {path: 'tab2', component: () => import('../components/tabs/Tab2.vue')}
    ]
  },
  ]
})
export default router